
#include <Inklude/ikCMutex.h>
#include <boost/thread/mutex.hpp>

using namespace Inklude;

ikCMutex::ikCMutex()
{
    m_pMutex = new boost::timed_mutex();
}

ikCMutex::~ikCMutex()
{
    SAFE_DELETE(m_pMutex);
}

void ikCMutex::lock()
{
    m_pMutex->lock();
}

void ikCMutex::unlock()
{
    m_pMutex->unlock();
}

bool ikCMutex::try_lock()
{
    return m_pMutex->try_lock();
}

